//   pages/me/me.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    backgrounds: ['demo-text-1', 'demo-text-2', 'demo-text-3','demo-text-2', 'demo-text-3'],
    backgroundss: ['demo-text-1', 'demo-text-2', 'demo-text-3','demo-text-2', 'demo-text-3', 'demo-text-2'],
    info:{
      photoUpload:"",
      nickName:"",
      sumUsedMoney:"",
      todayProfitMoney:"",
      sumProfitMoney:"",
      sumIntegralCount:"",
    },
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: 'http://47.118.62.229:4008/local-mall/applet/account/myAccountInfo',
      header:{
        "content-type":"application/json",
        "device":"android",
        "token":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMiIsImlhdCI6MTYyNDQzMzgxMSwiZXhwIjoxNjI0NDM1NjExfQ.r3xNJ6Ykokb7rQdz-2hEpeVPct7_cTTrtmF73GKLkKc"
      },
      method:"GET",
      success:function(res) {
        console.log(res.data["data"])
         that.setData({
          "info":res.data["data"]
         });
      }
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})